package com.xyzh.stj.web.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xyzh.application.base.entity.BasicEntity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 权限表
 * </p>
 *
 * @author @JZB
 * @since 2023-10-29
 */
@Getter
@Setter
@TableName("menu_right")
@ApiModel(value = "RightEntity对象", description = "权限表")
@EqualsAndHashCode
public class RightEntity extends BasicEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.NONE)
    private String id;

    @ApiModelProperty("父id")
    private String parentId;

    @ApiModelProperty("代码控制权限标识符")

    private String code;

    @ApiModelProperty("菜单名称")
    private String name;

    @ApiModelProperty("菜单类型")
    private String rightType;

    @ApiModelProperty("菜单的序号")
    private String  params;

    @ApiModelProperty("菜单地址")

    private String url;

    @ApiModelProperty("一级菜单栏图标")
    private String icon;

    @ApiModelProperty("权限属于哪个模块")
    private String applicationId;

    @ApiModelProperty("排序")
    private Integer sortkey;

    @ApiModelProperty("组件地址")
    private String path;

    @ApiModelProperty("显示状态")
    private String show;

    @ApiModelProperty("启用状态")
    private String status;

    @ApiModelProperty("布局模板")
    private String layout;

}
